package cn.t212.cloud.ms.api;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class UserServiceFallback implements UserServiceClient {
    @Override
    public String hello() {
        return "hello服务暂时不可用";
    }

    @Override
    public List<UserDTO> users(UserDTO user) {
        System.out.println("users服务暂时不可用");
        return new ArrayList<>();
    }
}
